<?php

namespace App\Model\Dao;

use \Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="user")
 */
class User extends \Kdyby\Doctrine\Entities\BaseEntity{

    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="Role")
     * @ORM\JoinColumn(name="roleid", referencedColumnName="id")
     */
    private $role;
    
    /**
     * @ORM\ManyToOne(targetEntity="UserState")
     * @ORM\JoinColumn(name="userstateid", referencedColumnName="id")
     */
    private $userstate;
 
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $login;
    
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $password;
    
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $salt;
    
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $regcode;
    
    /**
     * @ORM\Column(type="datetimetz")
     */
    private $registred;
    
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $email;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $photo;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $gear;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $about;
    
    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $age;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $level;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $place;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $gender;
    
    public function setAll($role, $userstate, $login, $password, $salt, $regcode, 
        $registred, $email, $photo = NULL, $gear = NULL, $about = NULL, $age = NULL, $level = NULL, $place = NULL, $gender = NULL){
      
      $this->role = $role;
      $this->userstate = $userstate;
      $this->login = $login;
      $this->password = $password;
      $this->salt = $salt;
      $this->regcode = $regcode;
      $this->registred = $registred;
      $this->email = $email;
      $this->photo = $photo;
      $this->gear = $gear;
      $this->about = $about;
      $this->age = $age;
      $this->level = $level;
      $this->place = $place;
      $this->gender = $gender;
    }
    
    public function getId() {
      return $this->id;
    }

    public function getRole() {
      return $this->role;
    }

    public function getUserstate() {
      return $this->userstate;
    }

    public function getLogin() {
      return $this->login;
    }

    public function getPassword() {
      return $this->password;
    }

    public function getSalt() {
      return $this->salt;
    }

    public function getRegcode() {
      return $this->regcode;
    }

    public function getRegistred() {
      return $this->registred;
    }

    public function getEmail() {
      return $this->email;
    }

    public function getPhoto() {
      return $this->photo;
    }

    public function getGear() {
      return $this->gear;
    }

    public function getAbout() {
      return $this->about;
    }

    public function getAge() {
      return $this->age;
    }

    public function getLevel() {
      return $this->level;
    }

    public function getPlace() {
      return $this->place;
    }
    
    public function getGender() {
      return $this->gender;
    }

    public function setId($id) {
      $this->id = $id;
    }

    public function setRole($role) {
      $this->role = $role;
    }

    public function setUserstate($userstate) {
      $this->userstate = $userstate;
    }

    public function setLogin($login) {
      $this->login = $login;
    }

    public function setPassword($password) {
      $this->password = $password;
    }

    public function setSalt($salt) {
      $this->salt = $salt;
    }

    public function setRegcode($regcode) {
      $this->regcode = $regcode;
    }

    public function setRegistred($registred) {
      $this->registred = $registred;
    }

    public function setEmail($email) {
      $this->email = $email;
    }

    public function setPhoto($photo) {
      $this->photo = $photo;
    }

    public function setGear($gear) {
      $this->gear = $gear;
    }

    public function setAbout($about) {
      $this->about = $about;
    }

    public function setAge($age) {
      $this->age = $age;
    }

    public function setLevel($level) {
      $this->level = $level;
    }

    public function setPlace($place) {
      $this->place = $place;
    }
    
    public function setGender($gender) {
      $this->gender = $gender;
    }




}

